from String
Converts a string representation of a playlist type into the corresponding PlaylistType enum constant.
The mapping is case-sensitive and based on the typical display names:
Return
The matching PlaylistType enum constant, or null if the input string does not correspond to any known playlist type. Consider throwing an IllegalArgumentException for unmapped strings if a null return is not desired for error handling.
Parameters
x
The string value representing the playlist type (e.g., "Gallery", "Image").